#!/bin/sh

# 设置环境变量
export MACA_PATH=/opt/maca/
export LD_LIBRARY_PATH=${MACA_PATH}/lib:${MACA_PATH}/mxgpu_llvm/lib:${LD_LIBRARY_PATH}
export CUDA_PATH=/opt/maca/tools/cu-bridge/
export CUDA_HOME=/opt/maca/tools/cu-bridge/
export CUCC_PATH=/opt/maca/tools/cu-bridge/
export PATH=${CUCC_PATH}/tools:${CUCC_PATH}/bin:${PATH}

# 打印环境变量以确认设置
echo "MACA_PATH is set to: $MACA_PATH"
echo "LD_LIBRARY_PATH is set to: $LD_LIBRARY_PATH"
echo "CUDA_PATH is set to: $CUDA_PATH"
echo "CUDA_HOME is set to: $CUDA_PATH"
echo "CUCC_PATH is set to: $CUCC_PATH"
echo "PATH is set to: $PATH"
echo "mxcc -v"
mxcc -v